package org.wuyichun.gift.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserRegisterDto {
    @NotNull(message ="手机号不能为空" )
    @Pattern(regexp = "^1[3-9]\\\\d{9}$",message = "手机号格式不正确")
    private String phone;
    @NotNull(message ="手机验证码不能为空" )
    private String phoneCode;
    @NotNull(message ="密码不能为空" )
    private String password;
    /*验证码的类型*/
    @NotNull(message ="类型不能为空" )
    private String type;

}
